import request from '@/utils/request.js'

export const userRegisterService=(registerData)=>{
    console.log(registerData);
return request.post('/registered',{ 
        email: registerData.email,
        userName:registerData.userName,
        password:registerData.password,
        code:registerData.code
      })
}
export const mail=(email)=>{
return request.post('/mail', null,{  
    params: {  
        email: email  
    }  })
}
export const userlogin=(loginData)=>{
  return  request.post('/login',{
        userName:loginData.userName,
        password:loginData.password
    })
}